//------------------------------------------------------------------------------
#ifndef __CMYLINEDIT_H__
#define __CMYLINEDIT_H__
//------------------------------------------------------------------------------
#include <QtGui>
#include <QLineEdit>
#include <QString>
#include <QtDesigner/QDesignerExportWidget>
#include "CChampText.h"
//-----------------------------------------------------------------------------------
#ifndef DESIGNER_CONTROL
#define DESIGNER_EXPORT	QDESIGNER_WIDGET_EXPORT
#else
#define DESIGNER_EXPORT
#endif //DESIGNER_CONTROL
//------------------------------------------------------------------------------
class DESIGNER_EXPORT CMyLineEdit : public QLineEdit, public CChampText
{
	Q_OBJECT
#ifndef DESIGNER_CONTROL
	Q_PROPERTY(QString champ READ getChamp WRITE setChamp)
	Q_PROPERTY(QString table READ getTable WRITE setTable)
	Q_PROPERTY(CCommun::EDataType dataType READ getDataType WRITE setDataType)
	Q_PROPERTY(bool standaloneEnable READ getStandaloneEnable WRITE setStandaloneEnable)
#endif //DESIGNER_CONTROL
	public:
		CMyLineEdit(QWidget *parent = 0);
		virtual QString getValue(void);
		virtual void setValue(QVariant value);
		virtual void setStateEnable(bool enable);
		virtual void setAttribut(EAttribut value);
		virtual void setTextCondition(QString value);
		virtual bool isEmpty(void);
	protected:
		virtual void keyPressEvent(QKeyEvent * event);
		virtual void mouseReleaseEvent(QMouseEvent *event);
	signals:
		void inkoveHelp(CChamp *sender);
		void clickWithCtrl(void);
};
//------------------------------------------------------------------------------
#endif //__CMYLINEDIT_H__
//------------------------------------------------------------------------------